/*******************************************************************************
 * Package: com.chris.common.entity
 * Type:    Product
 * Date:    2024/3/1 下午1:30
 *
 * Copyright (c) 2024 BOING CORP.,LTD All Rights Reserved.
 *
 * You may not use this file except in compliance with the License.
 *******************************************************************************/
package com.chris.common.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * TODO your comment
 *
 * @author Hudesheng
 * @date 2024/3/1 下午1:30
 */
//商品
@Entity(name = "shop_product")
@Data
public class Product implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    //主键
    private Integer pid;
    //商品名称
    private String pname;
    //商品价格
     private Double pprice;
    //库存
     private Integer stock;
}